Returns the <imsss:ruleAction>/action attribute value, or SequencingRuleAction.NoAction if there is none.
Parent Type: SequencingRuleNodeReader
Namespace: Microsoft.LearningComponents.Manifest
Assembly: Microsoft.LearningComponents.dll
| C# |
|
public SequencingRuleAction Action { get; } |
| Exception type | Condition |
| InvalidPackageException | Thrown in |
There should be only one <imsss:ruleAction> node. If there is more than one, in ManifestReaderSettings.FixScormRequirementViolations=true, a warning is issued to the log and the first one is returned. In ManifestReaderSettings.FixScormRequirementViolations=false an error is issued to the log and an InvalidPackageException is thrown.
In ManifestReaderSettings.FixScormRequirementViolations=true if there is an invalid token for the action attribute, SequencingRuleAction.NoAction is returned.
Only a subset of SequencingRuleAction values are valid for each rule condition type. For <imsss:preConditionRule>, valid SequencingRuleAction values are: Skip, Disabled, HiddenFromChoice, and StopForwardTraversal. For <imsss:exitConditionRule>, the only valid SequencingRuleAction value is: Exit. For <imsss:postConditionRule>, valid SequencingRuleAction values are: ExitParent, ExitAll, Retry, RetryAll, Continue, and Previous.
SequencingRuleAction.NoAction is returned in both ManifestReaderSettings.FixScormRequirementViolations=true and ManifestReaderSettings.FixScormRequirementViolations=false if there is no <imsss:ruleAction> node.